﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace PDAWebService.Entity
{
    public class ResponseBase<T>
    {
        private List<T> lists;
        public List<T> Lists
        {
            get { return lists; }
            set { lists = value; }
        }

        private ErrorMessage errorInfo;
        public ErrorMessage ErrorInfo
        {
            get { return errorInfo; }
            set { errorInfo = value; }
        }
    }

    public class ResponseString
    {
        private string value;
        public string Value
        {
            get { return value; }
            set { value = Value; }
        }

        private ErrorMessage errorInfo;
        public ErrorMessage ErrorInfo
        {
            get { return errorInfo; }
            set { errorInfo = value; }
        }
    }

    public class ResponseInteger
    {
        private int value;
        public int Value
        {
            get { return value; }
            set { value = Value; }
        }

        private ErrorMessage errorInfo;
        public ErrorMessage ErrorInfo
        {
            get { return errorInfo; }
            set { errorInfo = value; }
        }
    }

    public class ResponseDatetime
    {
        private DateTime value;
        public DateTime Value
        {
            get { return value; }
            set { value = Value; }
        }

        private ErrorMessage errorInfo;
        public ErrorMessage ErrorInfo
        {
            get { return errorInfo; }
            set { errorInfo = value; }
        }
    }

    public class ResponseBoolean
    {
        private bool value;
        public bool Value
        {
            get { return value; }
            set { value = Value; }
        }

        private ErrorMessage errorInfo;
        public ErrorMessage ErrorInfo
        {
            get { return errorInfo; }
            set { errorInfo = value; }
        }
    }
}
